package com;

import com.event.DomainEventPublisher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 *     默认自动开启事件发布的自动装配
 * </p>
 * @author 大忽悠
 * @create 2022/9/15 21:05
 */
@Configuration
public class EventAutoConfiguration {
    @Bean
    public DomainEventPublisher eventPublisher(){
        return new DomainEventPublisher();
    }
}
